package com.cote.douhahou.pretloan.any.data.akomapalendservices;

import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;

import androidx.core.content.ContextCompat;

import com.cote.douhahou.pretloan.beans.AkomapalendASHdwBn;
import com.google.gson.Gson;
import com.cote.douhahou.pretloan.any.data.akomapalendutil.AkomapalendASGeneralUtil;
import com.cote.douhahou.pretloan.any.data.akomapalendutil.AkomapalendASHarewareUtil;
import com.cote.douhahou.pretloan.any.data.akomapalendutil.AkomapalendASNetworkUtil;
import com.cote.douhahou.pretloan.any.data.akomapalendutil.AkomapalendASUtil;

public class AkomapalendASHdwIfo {

    public static AkomapalendASHdwBn dataList(final Context paramContext) {
        AkomapalendASHdwBn bean = new AkomapalendASHdwBn();
        if (PackageManager.PERMISSION_GRANTED == ContextCompat.checkSelfPermission(paramContext, Manifest.permission.READ_PHONE_STATE)) {
            try {
                bean.shaPhoypealend(AkomapalendASGeneralUtil.phoneType(paramContext));
                bean.satVersiCdapalend(AkomapalendASGeneralUtil.versionCod(paramContext));
                bean.swtVersionNpalend(AkomapalendASGeneralUtil.versiopalend(paramContext));
                bean.atAid(AkomapalendASGeneralUtil.gtAndrodID(paramContext));
                bean.statTelepomapalend(AkomapalendASGeneralUtil.gSimOperatorNf(paramContext));
                bean.sIpd(AkomapalendASNetworkUtil.vpnState(paramContext));
                bean.selend(AkomapalendASNetworkUtil.isWifiProxy());
                bean.sww(AkomapalendASGeneralUtil.isDebu(paramContext));
                bean.etSStand(AkomapalendASGeneralUtil.gimCardStatnd(paramContext));
                bean.snd(AkomapalendASHarewareUtil.g2IsRoot(paramContext));
                bean.sepalend(AkomapalendASHarewareUtil.gstPhySicalSize(paramContext));
                bean.tDislend(AkomapalendASGeneralUtil.gtDiayLanguag());
                bean.tIso3Lalend(AkomapalendASGeneralUtil.gIso3komapalend());
                bean.sejtIso3alend(AkomapalendASGeneralUtil.tI3Countrnd());
                bean.shtNetrkOpeme(AkomapalendASGeneralUtil.gSimOperatorNf(paramContext));
                bean.stNetworkTyplend(AkomapalendASGeneralUtil.networkTypeomapalend(paramContext));
                bean.sTimeZonealend(AkomapalendASGeneralUtil.Ttimend());
                bean.sitElapsedd(AkomapalendASGeneralUtil.elapsedRealtime());
                bean.tSensorLmapalend(AkomapalendASHarewareUtil.gaensorList(paramContext));
                bean.lakomapalend(AkomapalendASGeneralUtil.lastBootTime());
                bean.sRomapalend(AkomapalendASHarewareUtil.g2IsRoot(paramContext));
                bean.seKeyboend(AkomapalendASHarewareUtil.gkeyboard(paramContext));
                bean.sapalend(AkomapalendASHarewareUtil.lend());
                bean.tend(AkomapalendASHarewareUtil.gsffleD(paramContext));
                bean.sPhoneNummapalend("");

            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return bean;
    }

    public static String zipString(Context paramContext) {
        String zipString = "";
        try {
            AkomapalendASHdwBn infoBean = dataList(paramContext);
            String result = new Gson().toJson(infoBean).trim();
            zipString = AkomapalendASUtil.stringToGZIP(result);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return zipString;
    }

}
